package com.songlanyun.modules.areafeature.model;

import com.songlanyun.common.drive.ValueObject;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@Data
public class GoodsAreaFeatureDTO implements ValueObject {
    private Long id;
    /**
     * 商品id
     */
    private Long goodsId;
    /**
     * 商品分区特征(0服务体系礼包,1新人福利区,2公益申领)
     */
    @Range(min = 0L,max = 2L,message = "商品分区特征只能选择0-2")
    private Integer areaFeature;
    /**
     * 顺序
     */
    @Min(value = 0,message = "顺序值最小是0")
    @Max(value = 99999999,message = "顺序值最小是99999999")
    private Integer orderIndex;

    private Integer servicePackageArea;
}
